﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MaciejGrabek.WP7.Services.Model.Entities;

namespace MaciejGrabek.WP7.Services.Model.Mappers
{
    public static class GameResultMapper
    {
        public  static GameResult FromDto(GameResultDto item)
        {
            return new GameResult()
                       {
                           DeviceId = item.DeviceId,
                           PlayerName = item.PlayerName,
                           GameId = item.GameId,
                           DateTime = DateTime.Now,
                           Score = item.Score
                       };
        }
    }
}